package com.damionew.website.model.back;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Transient;

import org.hibernate.validator.constraints.NotEmpty;

public class Menu {
       private String menu_code;
       private String title;
       private String url;
       private String sort_id;
       private String is_visible;
       private String parent_code;
       private String permission;
       private Boolean available = Boolean.FALSE;
       private String parent_title;
       public String getParent_title() {
        return parent_title;
        }
        public void setParent_title(String parent_title) {
            this.parent_title = parent_title;
        }
    @ManyToMany
       @JoinTable(name="SysRolePermisson",joinColumns= {@JoinColumn(name="permissionId")},inverseJoinColumns= {@JoinColumn(name="roleId")})
       
       public String getPermission() {
		return permission;
	}
	public void setPermission(String permission) {
		this.permission = permission;
	}
	public Boolean getAvailable() {
		return available;
	}
	public void setAvailable(Boolean available) {
		this.available = available;
	}
	public String getMenu_code() {
            return menu_code;
        }
        public void setMenu_code(String menu_code) {
            this.menu_code = menu_code;
        }
        public String getTitle() {
            return title;
        }
        public void setTitle(String title) {
            this.title = title;
        }
        public String getUrl() {
            return url;
        }
        public void setUrl(String url) {
            this.url = url;
        }
        public String getSort_id() {
            return sort_id;
        }
        public void setSort_id(String sort_id) {
            this.sort_id = sort_id;
        }
        public String getIs_visible() {
            return is_visible;
        }
        public void setIs_visible(String is_visible) {
            this.is_visible = is_visible;
        }
        public String getParent_code() {
            return parent_code;
        }
        public void setParent_code(String parent_code) {
            this.parent_code = parent_code;
        }
}
